<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<c:set var="base" value="${pageContext.request.contextPath}"></c:set>
<!-- BEGIN SIDEBAR -->
    <ul>
    <c:if test="${admin.utype=='1'}">
     	<li><a href="${base}/backstatistics/first.do">设备统计</a></li>
     </c:if>
      <li><a href="${base}/back/devicelist.do">设备管理</a></li>
      <c:if test="${admin.utype=='1'}">
      	<li><a href="${base}/back/deviceflshow.do">分类管理</a></li>
      </c:if>
      <li><a href="${base}/back/deviceiostock.do">日常管理</a></li>
      <c:if test="${admin.utype=='1'}">
      	<li><a href="${base}/back/userlist.do" >用户管理</a></li>
      </c:if>
      
    </ul>

    <script>
      $(function () {
       var page = window.location.href;
       var paraString = page.substring(page.lastIndexOf("/")+1, page.length);
       $('.side ul li a').each(function () {
       var href = $(this).attr('href');
       if (href == paraString) {
         $(this).parent('li').addClass('on').siblings().removeClass('on');
       }
  });
})
</script>